function newWeights = calculateNewWeights(weights, gradients, eta)
     
numLayers = length(weights);
    
newWeights = cell(numLayers, 1);
                            
for i = 1 : numLayers
    newWeights{i} = weights{i} - eta * gradients{i};
end
